import React,{lazy,Suspense} from 'react'
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom'
const Index =lazy(()=>import('./Index/Indexa'))
const Shop =lazy(()=>import('./Shop/Shop'))
export default function App() {
  return (
    <div>
      <Suspense fallback={<div>Loading....</div>}>
        <Routes>
          <Route path='/' element={<Index></Index>} exact></Route>
          <Route path='/shop' element={<Shop></Shop>}></Route>
        </Routes>
      </Suspense>
    </div>
  )
}
